import axios from "../index.js";
// 预警研判单获取预警信息
export const warningJudgeGetInfoData = (data) => {
  return axios.request({
    url: "/warning/warningJudge/getInfoData",
    method: "get",
    data: data
  });
};
// 获取未研判的预警信息
export const warningJudgeGetNoJudgeInfo = (data) => {
  return axios.request({
    url: "/warning/warningJudge/getNoJudgeInfo",
    method: "get",
    data: data
  });
};
// 分页查询
export const listPage = (data) => {
  return axios.request({
    url: "/warning/warningJudge/listPage",
    method: "post",
    data: data
  });
};
// 详情
export const getByIds = (data) => {
  return axios.request({
    url: "/warning/warningJudge/getById",
    method: "get",
    data: data
  });
};
// 删除
export const deleteById = (data) => {
  return axios.request({
    url: "/warning/warningJudge/deleteById",
    method: "post",
    data: data
  });
};// 修改
export const updById = (data) => {
  return axios.request({
    url: "/warning/warningJudge/updById",
    method: "post",
    data: data
  });
};
// 提交
export const warningJudgeSubmit = (data) => {
  return axios.request({
    url: "/warning/warningJudge/submit",
    method: "post",
    data: data
  });
};
// 保存
export const saveAdd = (data) => {
  return axios.request({
    url: "/warning/warningJudge/save",
    method: "post",
    data: data
  });
};
// 审批-驳回
export const warningJudgeApprove = (data) => {
  return axios.request({
    url: "/warning/warningJudge/approve",
    method: "post",
    data: data
  });
};
// 研判标准
export const getJudgeStandard = (data) => {
  return axios.request({
    url: "/warning/warningJudge/getJudgeStandard",
    method: "get",
    data: data
  });
};
// 影响用户和设备
export const effectFacilityListPage = (data) => {
  return axios.request({
    url: "/warning/judgeHomePage/effectFacilityListPage",
    method: "post",
    data: data
  });
};
// 受影响的设备及用户统计
export const getCircuitDetailData = (data) => {
  return axios.request({
    url: "/warning/judgeHomePage/getCircuitDetailData",
    method: "get",
    data: data
  });
};
// 编辑页获取未研判的预警信息
export const getEditNoJudgeInfo = (data) => {
  return axios.request({
    url: "/warning/warningJudge/getEditNoJudgeInfo",
    method: "get",
    data: data
  });
};

// 地图
export const getAlreadyIssue = (data) => {
  return axios.request({
    url: "/warning/judgeHomePage/getAlreadyIssue",
    method: "get",
    data: data
  });
};
// 分页查询-2
export const listPagey = (data) => {
  return axios.request({
    url: "/warning/warningJudge/listPage2",
    method: "post",
    data: data
  });
};
